package com.suixuan.spring.entity.hbm;

import java.util.HashSet;
import java.util.Set;

import com.suixuan.spring.entity.base.PrimaryKeyEntity;

public class Menu extends PrimaryKeyEntity {

	/**
	 * 
	 */
	private static final long serialVersionUID = 6832912752734472838L;

	private String name;
	private String url;

	private U u;

	private Menu parent;

	private Set<Menu> child = new HashSet<Menu>();

	public Set<Menu> getChild() {
		return child;
	}

	public String getName() {
		return name;
	}

	public Menu getParent() {
		return parent;
	}

	public U getU() {
		return u;
	}

	public String getUrl() {
		return url;
	}

	public void setChild(Set<Menu> child) {
		this.child = child;
	}

	public void setName(String name) {
		this.name = name;
	}

	public void setParent(Menu parent) {
		this.parent = parent;
	}

	public void setU(U u) {
		this.u = u;
	}

	public void setUrl(String url) {
		this.url = url;
	}

}
